#!/bin/sh
current_host=$1
if test -z "$current_host"
then
    echo usage: ssh_key user@host 
    exit
else
    echo fine ... 
    pub_key=`cat ~/.ssh/id_dsa.pub`
    ssh $current_host "(mkdir .ssh&>/dev/null; chmod 700 .ssh && echo $pub_key >> .ssh/authorized_keys )&&chmod 600 .ssh/authorized_keys"
    
fi
